package com.example.dormitorysystem.mapper;

import com.example.dormitorysystem.entity.Buildings;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 吉吉王国组
 * @since 2022-11-26
 */
public interface BuildingsMapper extends BaseMapper<Buildings> {

    @Select("select name from buildings where id = #{id}")
    String selectBuildingName(@Param("id") Integer buildingId);
}
